<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <h:head>
        <meta charset="utf-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <link rel="stylesheet" href="../css/dashboard.css" type="text/css"/>
        <link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css"/>
        <script src="../js/bootstrap.min.js"/>
        <title><ui:insert name="title" /></title>
        <ui:insert name="script" />
    </h:head>
    <h:body>
        <!--part of the page fot the navbar-->
        <ui:insert name="navBar">
            <nav id="content" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
                <div class="container">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="home.xhtml">MeteoCal</a>
                    </div>
                    <div id="navbar" class="navbar-collapse collapse">
                        <ul class="nav navbar-nav navbar-right">
                            <li><a  href="profile.xhtml">Profile</a></li>
                            <li>
                                <a href="notifications.xhtml">
                                    <p:graphicImage value="images/notifications.png" rendered="#{!notificationBean.notReadNotification()}"/>
                                    <p:graphicImage value="images/newNotifications.png" rendered="#{notificationBean.notReadNotification()}"/>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </nav>
        </ui:insert>
        <div class="container">
            
            <div class="row">
                
                <div class="col-md-12">
                    
                    
                    <hr/>
                    
                </div>
                
            </div>
            
            
            <div class="row">
                
                <!-- sidebar -->
                <div class="col-xs-6 col-sm-4 col-md-3 sidebar-offcanvas">
                    <ul data-spy="affix" data-offset-top="50" id="affix" class="nav nav-stacked">
                        <!--part of the page for the sidebar-->
                        <ui:insert name="sidebar">
                            <li><p:link outcome="createEvent" value="Create Event"/></li>
                            <li><p:link outcome="createdEvent" value="See Created Event"/></li>
                            <li><p:link outcome="notifications" value="My Notifications"/></li>
                            <li><p:link outcome="searchForUser" value="Search For A User"/></li>
                            <li><p:link outcome="importCalendar" value="Import Calendar"/></li>
                            <li><p:link outcome="exportCalendar" value="Export Calendar"/></li>
                            <li><p:link outcome="suggestRegistration" value="Suggest Registration"/></li>
                            <li><h:form>
                                    <p:commandLink action="#{loginBean.logout()}" value="logout"/>
                                </h:form>
                            </li>
                        </ui:insert>
                    </ul>
                </div>
                
                <!-- content -->
                <div class="main">
                    <!-- part of the page for the main content-->
                    <ui:insert name="content">Main Content</ui:insert>
                </div>
            </div>
        </div>
        <footer class="footer">
            <div class="container">
                <p class="text-muted"><center>&copy; Daniele Marangoni - Matteo Montalcini - Daniele Moro 2014</center></p>
            </div>
        </footer>
    </h:body>
</html>